import request from '@/router/request'
const baseUrl = "/api/sys/arpa"

export function getApraList(params) {
  return request({
    url: baseUrl + "/list",
    method: "get",
    params
  })
}

export function getApraListById(params) {
  return request({
    url: baseUrl + "/listSingle",
    method: "get",
    params
  })
}

export function setWeather(data) {
  return request({
    url: baseUrl + "/setWeather",
    method: "put",
    data
  })
}

export function changeRadar(data) {
  return request({
    url: baseUrl + "/sendControl",
    method: "put",
    data
  })
}

export function getArpa() {
  return request({
    url: baseUrl + "/arpa",
    method: "get",
  })
}

export function getAisArpa() {
  return request({
    url: baseUrl + "/aisArpa",
    method: "get",
  })
}

export function getinitArpa() {
  return request({
    url: baseUrl + "/initArpa",
    method: "get",
  })
}


export function getArpaState() {
  return request({
    url: baseUrl + "/getState",
    method: "get",
  })
}



